package com.hgw.Demo01_ChainOfResponsibilityPattern.ChainOfResponsibilityPattern;

/**
 * Data time:2021/12/16 12:21
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public class ConcreteHandler extends Handler{
    @Override
    public void handleRequest(String request) {
        if (request == "请求满足条件") {
            // 处理请求
        } else {
            this.successor.handleRequest(request);  //转发请求
        }
    }
}
